package com.gxa.saas.mapper;

import com.gxa.saas.pojo.Purchase;
import com.gxa.saas.pojo.Storage;

import java.nio.file.Path;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @author wxz
 */
public interface PurchaseMapper {

    List<Purchase> selectByPage(Integer offset, Integer size);

    Integer deleteById(Integer id);

    /**
     * 判断通不通过
     * @param purchase
     * @return
     */
    Integer updateStatus(Purchase purchase);
    List<Purchase> selectAll();


//    List<Purchase> selectBySupplier(String supplier);
//    List<Purchase> selectByStatus(String status);
//    List<Purchase> selectBypayType(String payType);
//    List<Purchase> selectByApprover(String approver);
//    List<Purchase> selectBycreateDate(String date);
//    List<Purchase> selectByNeedDate(String date);

    List<Purchase> selectByName(Map map);

//    List<Purchase> selectByRequestName(Map map);
}
